package com.baizhi.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 异常枚举
 */
@AllArgsConstructor
@Getter
public enum CodeEnum implements ExceptionAssert{
    success(200,"成功"),
    fail(400,"失败"),
    user_register_fail(401,"注册失败"),
    username_already_exist(402,"用户名已经存在，注册失败"),
    user_is_no_regist(403,"用户未注册"),
    password_is_incorrect(405,"密码不正确"),
    userdata_not_update(406,"用户数据未更新，无需修改"),
    user_update_fail(407,"用户数据修改失败"),
    update_userdata_not_is_null(408,"用户修改修改参数不能为空"),
    old_password_id_incorrect(407,"原密码输入有误"),
    password_data_is_not_update(408,"新旧密码一致，无需修改"),
    password_update_fail(409,"密码修改失败"),
    course_is_not_exit(410,"所选课程不存在"),
    course_not_repetition(411,"该课程已选择，不能重复选择"),
    selectcourse_is_fail(412,"选课失败"),
    student_not_select_course(413,"您还没有选课"),
    cancel_a_course_fail(414,"取消选课失败"),
    select_course_score(415,"您要查询课程的成绩不存在"),
    update_score_fail(416,"调课失败"),
    no_student_selected_course(417,"该门课程暂时没有学生选择"),
    update_score_is_not_exist(418,"要修改的数据不存在"),
    update_score_is_fail(419,"成绩修改失败"),
    teacher_not_fond(420,"教师数据不存在"),
    user_logout_fail(421,"用户注销失败"),
    user_data_exist(422,"用户数据已经存在");


    public int code;
    public String message;


}
